package com.nbsaas.sample.user.rest.convert;

import com.nbsaas.sample.entity.user.UserAddress;
import com.nbsaas.sample.user.api.domain.simple.UserAddressSimple;

import com.nbsaas.boot.rest.api.Converter;
/**
* 列表对象转换器
*/

public class UserAddressSimpleConvert implements Converter<UserAddressSimple, UserAddress> {




    @Override
    public UserAddressSimple convert(UserAddress source) {
        UserAddressSimple result = new UserAddressSimple();

                    result.setTownName(source.getTownName());
                    result.setProvinceName(source.getProvinceName());
                    result.setDistrictId(source.getDistrictId());
                    result.setTownId(source.getTownId());
                    result.setAddress(source.getAddress());
                    result.setDefaultAddress(source.getDefaultAddress());
                    result.setLatitude(source.getLatitude());
                    result.setLongitude(source.getLongitude());
                    result.setId(source.getId());
                    result.setCityId(source.getCityId());
                    result.setContact(source.getContact());
                    result.setPhone(source.getPhone());
                    result.setUserId(source.getUserId());
                    result.setProvinceId(source.getProvinceId());
                    result.setDistrictName(source.getDistrictName());
                    result.setCityName(source.getCityName());


    return result;
  }

}